import request from '@/utils/request'
// 获取员工全部信息
export function getSettings(params) {
  return request({
    url: '/sys/role',
    method:'get',
    params
  })
}

// 添加角色
export function addSettings(data) {
    return request({
      url: '/sys/role',
      method:'post',
      data
    })
  }

//   编辑角色
export function editSettings(data) {
    return request({
      url: `/sys/role/${data.id}`,
      method:'put',
      data
    })
  }

  //   删除角色
export function deleSettings(id) {
  return request({
    url: `/sys/role/${id}`,
    method:'delete',
  })
}